using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Threading.Tasks;

namespace ShopForWeb.Model.Basic
{
    [Table("T_User")]
    public partial class User
    {

        /// <summary>
                /// 密码
                /// </summary>
        [StringLength(20)]
        [Required]
        public string Password { get; set; } = "";

        /// <summary>
                /// 电话
                /// </summary>

        [StringLength(11)]
        [Required]
        public string Phone { get; set; } = "";

        /// <summary>
                /// 注册日期
                /// </summary>

        [StringLength(10)]
        public string RegDate { get; set; } = "";

        /// <summary>
                /// 状态
                /// </summary>
        public int StatusCode { get; set; } = 1;

        /// <summary>
                /// 用户Id，自增
                /// </summary>
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public long UserId { get; set; }

        /// <summary>
                /// 用户名
                /// </summary
        /// // >

        [StringLength(50)]
        public string UserName { get; set; } = "";
    }
}